projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d63c9a9
)
Keep Man sections in natural order (bug#28998)
author
Basil L. Contovounesios
<contovob@tcd.ie>
Wed, 25 Oct 2017 15:57:43 +0000
(16:57 +0100)
committer
Noam Postavsky
<npostavs@gmail.com>
Sat, 11 Nov 2017 15:46:43 +0000
(10:46 -0500)
* lisp/man.el (Man-build-section-alist): Reverse sections.
lisp/man.el
patch
|
blob
|
history
diff --git
a/lisp/man.el
b/lisp/man.el
index 7a892c6e88a1bd34e58dc94e23c12150c4990017..f7b1609c929662e15adfc8272343105ffb34414c 100644
(file)
--- a/
lisp/man.el
+++ b/
lisp/man.el
@@
-1522,7
+1522,8
@@
The following key bindings are currently in effect in the buffer:
(let ((section (match-string 1)))
(unless (member section Man--sections)
(push section Man--sections)))
- (forward-line 1))))
+ (forward-line 1)))
+ (setq Man--sections (nreverse Man--sections)))
(defsubst Man-build-references-alist ()
"Build the list of references (in the SEE ALSO section)."